
var lastclickTime;
//500ms内是否重复点击按钮
bool isRepeatClick({int milliseconds = 500}) {
  if(lastclickTime == null || DateTime.now().difference(lastclickTime) > Duration(milliseconds: milliseconds)){
    lastclickTime = DateTime.now();
    return false;
  } else {
    print('重复点击');
    return true;
  }
}
